package com.quiz.bis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.quiz.bis.domain.model.ExamSession;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ExamSessionMapper extends BaseMapper<ExamSession> {

    @Delete("DELETE FROM exam_sessions WHERE exam_id = #{examId}")
    int deleteByExamId(@Param("examId") Long examId);
}